package com.das.cloudmetro.ssoserver;

import org.springframework.cloud.openfeign.*;
import org.springframework.cloud.client.discovery.*;
import com.das.cloudmetro.ssoserver.security.jwt.*;
import org.springframework.context.annotation.*;
import feign.*;
import org.springframework.web.client.*;
import org.springframework.cloud.client.loadbalancer.*;

@EnableFeignClients(basePackages = { "com.das.cloudmetro.ssoserver.feign" })
@Configuration
@ComponentScan({ "com.das.cloudmetro.ssoserver.security", "com.das.cloudmetro.ssoserver.feign", "com.das.cloudmetro.ssoserver.rs.filter", "com.das.cloudmetro.ssoserver.runner" })
@EnableDiscoveryClient
public class AuthorizationConfiguration
{
    @Bean
    UserAuthConfig getUserAuthConfig() {
        return new UserAuthConfig();
    }
    
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
    
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}
